class yuebaohuizongbean {
  bool success;
  String message;
  int code;
  List<Result> result;
  int timestamp;

  yuebaohuizongbean(
      {this.success, this.message, this.code, this.result, this.timestamp});

  yuebaohuizongbean.fromJson(Map<String, dynamic> json) {
    success = json['success'];
    message = json['message'];
    code = json['code'];
    if (json['result'] != null) {
      result = new List<Result>();
      json['result'].forEach((v) {
        result.add(new Result.fromJson(v));
      });
    }
    timestamp = json['timestamp'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['success'] = this.success;
    data['message'] = this.message;
    data['code'] = this.code;
    if (this.result != null) {
      data['result'] = this.result.map((v) => v.toJson()).toList();
    }
    data['timestamp'] = this.timestamp;
    return data;
  }
}

class Result {
  String ym;
  String sumdaily;
  String sumsettlementdaily;

  Result({this.ym, this.sumdaily, this.sumsettlementdaily});

  Result.fromJson(Map<String, dynamic> json) {
    ym = json['ym'];
    if(null ==json['sumdaily']){
      sumdaily = "";
    }else{
      sumdaily = json['sumdaily'];
    }
    if(null ==json['sumsettlementdaily']){
      sumsettlementdaily = "";
    }else{
      sumsettlementdaily = json['sumsettlementdaily'];
    }


  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['ym'] = this.ym;
    data['sumdaily'] = this.sumdaily;
    data['sumsettlementdaily'] = this.sumsettlementdaily;
    return data;
  }
}
